package  entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * ProduceExample entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="produce_example")
public class ProduceExample implements java.io.Serializable {

	// Fields

	private String rowid;
	private String produceId;
	private String name;
	private String batchnum;
	private boolean flag;
	private String productId;
	private String productName;
	private Float targetNum;
	private Integer indexnum;
	private Float realNum;
	private String detail;

	// Constructors

	/** default constructor */
	public ProduceExample() {
	}

	/** minimal constructor */
	public ProduceExample(String rowid) {
		this.rowid = rowid;
	}

	/** full constructor */
	public ProduceExample(String rowid, String produceId, String name,
			String batchnum, boolean flag, String productId, String productName, 
			Float targetNum,Integer indexnum,Float realNum,String detail) {
		this.rowid = rowid;
		this.produceId = produceId;
		this.name = name;
		this.batchnum = batchnum;
		this.flag = flag;
		this.productId = productId;
		this.productName = productName;
		this.targetNum=targetNum;
		this.indexnum= indexnum;
		this.realNum=realNum;
		this.detail=detail;
	}

	// Property accessors
	@Id
	@GeneratedValue(generator = "system-uuid")  
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(name="rowid")
	public String getRowid() {
		return this.rowid;
	}

	public void setRowid(String rowid) {
		this.rowid = rowid;
	}
	@Column(name="produceId")
	public String getProduceId() {
		return this.produceId;
	}

	public void setProduceId(String produceId) {
		this.produceId = produceId;
	}
	@Column(name="name")
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}
	@Column(name="batchnum")
	public String getBatchnum() {
		return this.batchnum;
	}

	public void setBatchnum(String batchnum) {
		this.batchnum = batchnum;
	}
	@Column(name="flag")
	public boolean getFlag() {
		return this.flag;
	}
	
	public void setFlag(boolean flag) {
		this.flag = flag;
	}
	@Column(name="productId")
	public String getProductId() {
		return this.productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}
	@Column(name="productName")
	public String getProductName() {
		return this.productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}
	@Column(name="targetNum")
	public Float getTargetNum() {
		return targetNum;
	}

	public void setTargetNum(Float targetNum) {
		this.targetNum = targetNum;
	}
	@Column(name="indexnum")
	public Integer getIndexnum() {
		return indexnum;
	}

	public void setIndexnum(Integer indexnum) {
		this.indexnum = indexnum;
	}
	@Column(name="realNum")
	public Float getRealNum() {
		return realNum;
	}

	public void setRealNum(Float realNum) {
		this.realNum = realNum;
	}
	@Column(name="detail")
	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}
	
}